package com.lightframework.core;

/**
 * 参加Spring-Core
 * 
 * @author rexwang
 * @date 2012-10-4
 * @version 0.1
 * @since 0.1
 */
public abstract class LightNestedExceptionUtils {
	public static String buildMessage(String message, Throwable cause) {
		if (cause != null) {
			StringBuilder sb = new StringBuilder();
			if (message != null) {
				sb.append(message).append("; ");
			}
			sb.append("nested exception is ").append(cause);
			return sb.toString();
		}
		else {
			return message;
		}
	}
}
